add module vsan capacity#40
Conversation
|
@datamuc Could you please review my solutions? Is there anything else that needs to be changed? |
https://developer.broadcom.com/xapis/vsan-management-api/latest/vim.cluster.VsanSpaceUsage.html slackSpaceB and resyncSpaceB are not there |
|
Your instinct is right — this patch is broken in a way that's especially bad for a monitoring check. Let me confirm the data model against the actual API before I make claims about field names.You're right to distrust it. I pulled the actual The confirmed The real problems, worst first:
The deeper conceptual issue: "slack space" is legacy pre-7.0U1 terminology and was never a queryable field. Since 7U1 it's Operations Reserve + Host Rebuild Reserve, and — importantly — those reserved byte values are not in What actually works for a capacity check: call |
This additional vsan module checks the capacity. The calculations are done including slack and resync. The programming was done with the help of ChatGPT.